package com.qf.springboot4.exhandlers;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class GlobalExHandler {

    @ExceptionHandler(Exception.class)
    public String ex(Exception e){

        e.printStackTrace();

        return "fail...";
    }
}
